//
//  NoContentView.m
//  TourPlay
//
//  Created by dllo on 15/12/11.
//  Copyright © 2015年 王军岐. All rights reserved.
//

#import "NoContentView.h"

@interface NoContentView ()

@property (nonatomic, retain) UILabel *label;

@end

@implementation NoContentView
- (void)dealloc
{
    [_label release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubView];
    }
    return self;
}
- (void)createSubView
{
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, (self.frame.size.height - 40) / 2.f, SCREEN_WIDTH, 40)];
    self.label.text = @"没有可以显示的内容";
    self.label.textAlignment = NSTextAlignmentCenter;
    self.label.font = [UIFont systemFontOfSize:15.f];
    self.label.textColor = [UIColor colorWithRed:0.75 green:0.73 blue:0.74 alpha:1];
    [self addSubview:self.label];
    [_label release];
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
